package com.platform.usercenter.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * 组织管理员对象 sys_organization_administrator
 *
 * @author platform
 * @date 2024-10-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysOrganizationAdministrator extends BaseEntity {

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 组织ID
     */
    private Long orgId;

    /**
     * 权限编码
     */
    @Excel(name = "权限编码")
    private String code;

    /**
     * 权限名称
     */
    @Excel(name = "权限名称")
    private String name;

    /**
     * 是否删除(Y,N)
     */
    @Excel(name = "是否删除(Y,N)")
    private String isDelete;

    /**
     * 删除人
     */
    @Excel(name = "删除人")
    private String deleteBy;

    /**
     * 删除时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /**
     * 用户id
     */
    private List<Long> userIds;
}
